home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ETO Development Tools 4
/
ETO Development Tools 4.iso
/
Tools - Objects
/
E.T.O. #4 Installer
/
ResEdit Install
< prev
next >
Wrap
Text File
|
1991-05-23
|
1KB
|
51 lines
# R E S E D I T I N S T A L L A T I O N S C R I P T
#
# Copyright Apple Computer, Inc. 1990, 1991 - All rights reserved.
#
#
# This script is used to install either ResEdit 1.2, 2.1 or 2.1.1b1 from the
# E.T.O. #4 distribution compact disk into a folder called "ResEdit Folder"
# on the destination hard disk.
#
# Options: None
#
# This script makes use of the following Shell variables:
#
# {CDVolume} - the name of the CD Distribution volume
#
# {DestVolume} - the name of the volume from which the Installer was launched
#
# {ResEditOption} - a flag used to indicate which version of ResEdit to install
#
# {Tools} - the name of the "Tools - Objects" folder
#
If "{ResEditOption}" == "1" ### install ResEdit 1.2
set Source "{CDVolume}{Tools}ResEdit:ResEdit 1.2:"
Else If "{ResEditOption}" == "2" ### install ResEdit 2.1
set Source "{CDVolume}{Tools}ResEdit:ResEdit 2.1:"
Else If "{ResEditOption}" == "3" ### install ResEdit 2.1.1b1
set Source "{CDVolume}{Tools}ResEdit:ResEdit 2.1.1b1:"
Else
Exit 1
End
### See if a folder called "ResEdit Folder" already exists,
### if so, rename it to "ResEdit Folder.Old"
if "`Exists -d "{DestVolume}ResEdit Folder"`"
if "`Exists -d "{DestVolume}ResEdit Folder.OLD"`"
Delete -y "{DestVolume}ResEdit Folder.OLD"
End
Rename -y "{DestVolume}ResEdit Folder" "{DestVolume}ResEdit Folder.OLD"
End
Duplicate -y "{Source}" "{DestVolume}ResEdit Folder:"
### That's It!
Exit 0